]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Split submenu expansion and arrow rotation
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 10 Jun 2017 02:32:22 +0000 (04:32 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Aug 2019 18:50:43 +0000 (20:50 +0200)
commit749f52fc8b2e99ff6a451fb617177d86eb6c865d
tree53d8acc655ceaef0e5f75b61f240a28bf1a696b4
parent1e6cb43815964454889825373c4e793f155265a5
popupMenu: Split submenu expansion and arrow rotation

When expanding a submenu, we currently use a single tween to animate
both the submenu actor and the source arrow. We do this by tweening
a monkey-patched JS property on the main actor, which we then use
to update the arrow's GObject property on updates. As Clutter cannot
animate random JS properties, this trick will prevent us from using
implicit animations here.

The only reason I can think of for using a single tween is to keep
both animations in perfect lock step, but as expansion and rotation
are visually quite distinct, this shouldn't be required, so just
set up separate animations for each actor.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/22
js/ui/popupMenu.js